package com.vmj.instructions.math;

import com.vmj.instructions.base.NoOperandsInstruction;
import com.vmj.rtda.Frame;

/**
 * Created by yangshoujun on 2017/9/16 下午9:04.
 */
public class Imul extends NoOperandsInstruction {
    @Override
    public void execute(Frame frame) {
        int v2 = frame.getOperandStack().popInt();
        int v1 = frame.getOperandStack().popInt();
        int result = v1 * v2;
        frame.getOperandStack().pushInt(result);
    }
}
